<?php
namespace app\api\validate\question;

class SignValidate extends \think\Validate
{
    protected $regex = [ 'tel' => "/^1[3-9]{1}[0-9]{9}$/"];
    protected $rule = [
        'name'      =>  'require',
        'telphone'  =>  'require|tel',
        'exam_id'   =>  'require|gt:0',
    ];
    protected $message  =   [
        'name.require'     => '请填名称',
        'telphone.require' => '请填写电话号码',
        'telphone.tel'     => '请正确填写手机号码',
        'exam_id.require'  => '请填写考试信息',
        'exam_id.gt'       => '请填写考试信息',
    ];
}